home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / Windoid / Sources / Include / WindoidPrt.h < prev   
Encoding:
Text File  |  1995-11-03  |  2.0 KB  |  77 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. #ifndef WINDOIDPRT_H
  5. #define WINDOIDPRT_H
  6.  
  7. //=======================================================================
  8. #ifndef _WINDOIDDEF_
  9. #include "WindoidDef.h"
  10. #endif
  11.  
  12. // ----- Framework Includes -----
  13. #ifndef FWPART_H
  14. #include "FWPart.h"            // FW_CPart
  15. #endif
  16.  
  17. // ----- Foundation Layer -----
  18. #ifndef FWSTDDEF_H
  19. #include <FWStdDef.h>        // ?
  20. #endif
  21.  
  22. #ifndef FWBNDSTR_H
  23. #include <FWBndStr.h>        // FW_CString
  24. #endif
  25.  
  26. //=======================================================================
  27. class FW_CLASS_ATTR FW_CPart;
  28. class FW_CLASS_ATTR FW_CString;
  29. class FW_CLASS_ATTR FW_CMenuBar;
  30. class FW_CLASS_ATTR FW_CMenuEvent;
  31. class FW_CLASS_ATTR FW_CPresentation;
  32. class FW_CLASS_ATTR CPaletteFrame;
  33. class FW_CLASS_ATTR CMainFrame;
  34. class FW_CLASS_ATTR FW_CFloatingWindow;
  35.  
  36. //=======================================================================
  37. #ifdef FW_BUILD_WIN16
  38. extern HANDLE far gWinInstance;        // Initialized by LibMain
  39. #endif
  40.  
  41. //=======================================================================
  42. class FW_CLASS_ATTR CWindoidPart : public FW_CPart {
  43. public:
  44.                         CWindoidPart(ODPart* odPart);
  45.     virtual             ~CWindoidPart();
  46.     static const ODValueType     kPartKind;
  47.     static const ODValueType     kPartUserName;
  48.     
  49. // overrides
  50. public:
  51.     virtual void         Initialize(Environment* ev);
  52.     virtual FW_CFrame*    NewFrame(Environment* ev,
  53.                                  ODFrame* odFrame,
  54.                                  FW_CPresentation* presentation,
  55.                                  FW_Boolean fromStorage);
  56.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  57.                                       FW_CMenuBar* menuBar, 
  58.                                       FW_Boolean hasMenuFocus,
  59.                                       FW_Boolean isRoot);
  60.     virtual FW_Boolean    DoMenu(Environment* ev,
  61.                                const FW_CMenuEvent& theMenuEvent);
  62.     
  63.     virtual void         MyMakePalette(Environment* ev);
  64.  
  65. // new members
  66. protected:
  67.     virtual void         MyInitMenus(Environment* ev);
  68.  
  69. private:
  70.     FW_CPresentation*    fMainPresentation;
  71.     FW_CPresentation*    fPalettePresentation;
  72.     FW_CFloatingWindow*    fPaletteWindow;
  73. };
  74.  
  75. //=======================================================================
  76. #endif
  77.